const express = require('express');
const router = express.Router();
const artcate_handle = require('../router_hander/artcate.js')
const {articleSchema,delArticleSchema} = require('../schema/article.js');
const expressJoi = require('@escook/express-joi');
router.get('/cates', artcate_handle.getArtcate);
router.post('/addCates',expressJoi(articleSchema), artcate_handle.addArtcate);
router.post('/delCates/:id', expressJoi(delArticleSchema),artcate_handle.delArtcate);

module.exports = router;